package com.cci.kangdao.service;

import com.cci.kangdao.dao.model.RolesT;
import com.cci.kangdao.dao.model.UserT;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

/**
 * @author William Du
 * @date 2019/4/30
 */
public interface RolesService {

    void getOrganizationList(Map map);
    
    void getCompanysGuidanz(Map<String, Object> map);

    void checkOrganization(Map map);

    void applyRole(Map map);

    Boolean addRoleOrder(Long organizationId, String organizationName, Integer organizationType, String employeeNum, Long userId, RolesT rolesT, Long userGroupId,Long subUserGroupId,List<UserT> handlerList,Integer applyType);

    //Boolean addRoleOrder(Long organizationId,String organizationName,Integer organizationType,String employeeNum,Long userId,Long roleId,Long userGroupId);

    List<UserT> getHandlerList(Long organizationId,Integer organizationType,Long userGroupId,Long roleId);

    Long getUserGroupId(Long organizationId,Integer organizationType);

    void getApplyOrderList(Map map);

    void getRoleOrderList(Map map);

    void getRoleNotifyList(Map map);

    void updateRoleNotifyReadStatus(Map map);

    void getRoleOrder(Map map);

    void approveRoles(Map map);

    void adminApproveRoles(Map map);

    void getRoleChannelList(Map map);

    void cancelRole(Map map);

    UserT initBaseUserGroup(UserT userT);

    void initBaseRoles(UserT userT);

    void initRoles(UserT userT,String roleNo);

    ModelAndView addRoleByUserId(Map<String,Object> map);

}
